"""
__init__.py

Remember that everything assigned here will be in the package library

This file contains CA3Cell objects with ca3_15 morphology 
that includes passive/active conductances
"""

def jonas1993():
    """
    Creates a cell object with the following 
    passive properties homogenously distributed
    Cm = 0.683  microF/cm^2
    Rm = 164000 Ohms*cm^2 
    Ra = 294    Ohms*cm  
    just as described in Jonas et al., 1993
    """
    from CA3.morphology import ca3_15
    cell = ca3_15()
    for sec in cell.allsec:
        sec.insert('pas')
        sec.cm = 0.683 # in microF/cm**2 
        sec.Ra = 294   # in Ohms*cm
        sec.g_pas = 1/164e3 # in Ohms*cm^2
        
    return cell

def christoph2007():
    """
    Creates a cell object with the following 
    passive properties homogenously distributed
    Cm = 1  microF/cm**2
    Rm = 164000 Ohms*cm**2 
    Ra = 194    Ohms*cm  (Schmidt-Hieber et al., 2007)
    """
    from CA3.morphology import ca3_15
    cell = ca3_15()
    for sec in cell.allsec:
        sec.insert('pas')
        sec.cm = 1 # in microF/cm**2 
        sec.Ra = 194   # in Ohms*cm
        sec.g_pas = 1/164e3 # in Ohms*cm^2

    return cell
    
